<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,initial-scale=1.0,width=device-width"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>Hello APP</title>
    <link rel="stylesheet" type="text/css" href="../css/app.css" />
    <link rel="stylesheet" type="text/css" href="../css/iconfont.css">
    <link href="../script/swiper/swiper.min.css" rel="stylesheet" />
    <style type="text/css">
    html,body{
        height: auto;
        /*height:100%;*/
    }

	#footer{bottom:0px;position:fixed;width: 100%; height:45px;display: block;}
    	
    #imgs img{max-width:100%;}
    
    #playlist{
    	padding-left: 10px;
		padding-right: 10px;
	}
    #playlist  a {
	    
	    float: left;
	    margin-left: 10px;
	    margin-top: 8px;
	    min-width: 54px;
	    height: 34px;
	    line-height: 34px;
	    font-size: 12px;
	    text-align: center;
	    display: block;
	    /*filter: inherit;*/
	    color: #666;
	    background: #EDEDED;
	    border: 1px solid #EAEAEA;
	    border-radius: 2px;
    }
    
    span.txt{display:none;}
    </style>
</head>
<body class="H-theme-background-color-white">

	
	
	
	
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/jquery-1.12.0.min.js"></script>
<script type="text/javascript" src="../script/app.js"></script>
<script type="text/javascript" src="../script/iscroll.js"></script>

<script type="text/javascript">

//	var myScroll2 = new IScroll('.catelist',{
//         vScroll :true
//	});
	
	
	var sysconfig = "";//获取系统配置参数 , 参数内容在后台接口获取
	var id ="";
	var token = localStorage.getItem('token');
	var type ="";
    apiready = function(){
    	sysconfig = $api.getStorage('sysconfig');
		api.parseTapmode();

		type = api.pageParam.type;
		
		
		api.addEventListener({
	        name:'push_user_info'
        },function(ret,err){
        	token = localStorage.getItem('token');
        	detail();
        });
		url = api.pageParam.url;
		title = api.pageParam.title;
		img = api.pageParam.img;
		detail();
    };
    
    
  
    function detail(){
    	$app.ajaxCache = false;
    	$app.ajax($app.serverUrl+"index/index/details",{ 'url':url , 'token' : token },'post',function(ret){
			$("body").html(ret);
		},'text');
    }
    
    
    function login(){
    	$app.openWinByUrl('login' , 'login');
    }
    
    
    

  


	
</script>
</html>